package com.yc.controller;


import com.yc.entity.Rankmonth;
import com.yc.mapper.RankmonthMapper;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * InnoDB free: 4096 kB 前端控制器
 * </p>
 *
 * @author ly
 * @since 2022-05-29
 */
@Controller
@RequestMapping("//rankmonth")
public class RankmonthController {
    @Resource
    private RankmonthMapper rankmonthMapper;

    @RequestMapping("queryAll")
    @ResponseBody
    public List< Rankmonth > queryAll(){
        return rankmonthMapper.selectList(null);
    }

    @RequestMapping("queryByCsname")
    @ResponseBody
    public List< Rankmonth > queryByCsname(String csname){
        return rankmonthMapper.queryByCsname(csname);
    }
}

